﻿@{
    ViewBag.Title = "友情链接";
    Layout = "~/Areas/Admin/Views/Shared/_RightLayout.cshtml";
}
	<form id="listForm" method="get" action="/admin/Partner/List/">
	<div id="toolBar">
        <a class="add" href="/admin/Partner/Edit/"><span>添加</span></a>
		<a class="delete" href="javascript:void()" rel="/admin/Partner/Delete/"><span>删除</span></a>
	    |
        <span>关键字：</span><span><input type="text" name="keywords" value="@Request["Keywords"]"/></span>			
		<input type="submit" value="查找" />
	</div>
	<div id="list">
		<table>
			<tr>
                <th style="width: 25px;" align="center" title="全选/取消">
                    <input type="checkbox" id="select_all" onclick="sel_all()"/>
                </th>
                <th>名称</th>
                <th>类型</th>
                <th>logo</th>
                <th>网址</th>
                <th style="width: 60px;" align="center">
                    操作
                </th>
            </tr>
            @foreach(tb_partner data in Model) 
               {
            <tr>
                <td align="center"><input type="checkbox" name="ids" value="@data.Id" /></td>
                <td>@data.name</td>
                <td>@switch (data.Type)
                    {
                        case 0:
                        @:参展商推荐
                        break;
                        case 1:
                        @:推荐展品
                        break;
                        case 2:
                        @:合作媒体
                        break;
                        default:
                        break;
                    }</td>
                <td>@data.logo</td>
                <td>@data.homepage</td>
                <td>
                    <a href="/admin/Partner/Edit/@data.Id" title="修改tb_partner" >修改</a>
                    <a href="/admin/Partner/Detail/@data.Id" title="查看tb_partner详细信息" >详细</a>
                </td>
            </tr>
            }
		</table>
	</div>
	@Html.Raw(PageControl.Render(Model))
	</form>
